package com.modern.js.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.modern.js.entity.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.modern.js.pojo.OrdersAssist;
import org.apache.ibatis.annotations.Param;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author PIGS
 * @since 2020-03-28
 */
@Repository
public interface OrdersMapper extends BaseMapper<Orders> {

    IPage<OrdersAssist> selectAllOrders(Page<OrdersAssist> page,String customerName,String busubessName);

    IPage<OrdersAssist> selectAllOrdersEmpId(Page<OrdersAssist> page,Integer empId);

    int updateOrder(Orders orders);

   OrdersAssist selectCount(String name);
}
